﻿#pragma once
#include "Chapter.g.h"

namespace winrt::NovelReader::implementation
{
	// TODO 可以尝试在 JSON 中存放标题，和章的起始，终止位置。每次都从文件流中读取。
	struct Chapter : ChapterT<Chapter>
	{
		Chapter();

		Chapter(hstring const& title, hstring const& text, int32_t index);
		hstring Title();
		void Title(hstring const& value); 

		hstring Text();
		void Text(hstring const& value); 

		int32_t Index() const;
		void Index(int32_t const& value); 

	private:
		hstring m_title; 
		hstring m_text; 
		int32_t m_index;
	};
}
namespace winrt::NovelReader::factory_implementation
{
	struct Chapter : ChapterT<Chapter, implementation::Chapter>
	{
	};
}
